using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SysFrame.Message;
using System.Reflection;

namespace SysFrame.BP
{
    /// <summary>
    /// system_14方法
    /// </summary>
    public class BLLsystem_14
    {
        public Isystem_14 interface_system_14;

        public BLLsystem_14()
        {
            object obj = BPBase.GetAchieve("SysFrame.BP","system_14");
            interface_system_14 = (Isystem_14)obj;
        }


        /// <summary>
        /// 得到system_14实体
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public List<Mssystem_14> Getsystem_14MsByQuery(MsQuery msq)
        {
            return interface_system_14.Getsystem_14MsByQuery(msq);
        }

        /// <summary>
        /// 通过System_14_10得到实体
        /// </summary>
        /// <param name="System_14_10">ID</param>
        /// <returns>实体</returns>
        public Mssystem_14 Getsystem_14MsByKey(string System_14_10)
        {
            MsQuery msquery = new MsQuery();
            msquery.strquery += " and System_14_10='" + System_14_10 + "' ";
            List<Mssystem_14> lstData = Getsystem_14MsByQuery(msquery);
            return lstData[0];
        }

        /// <summary>
        ///  保存system_14信息
        /// </summary>
        /// <param name="ms">实体信息</param>
        /// <returns>消息</returns>
        public MsReturned Savesystem_14(Mssystem_14 ms)
        {
            return interface_system_14.Savesystem_14(ms);
        }

        /// <summary>
        /// 得到数据类型
        /// </summary>
        /// <param name="msquery">条件</param>
        /// <returns>数据类型</returns>
        public MsReturned Getsystem_14ByQuery(MsQuery msquery)
        {
            return interface_system_14.Getsystem_14ByQuery(msquery);
        }

        /// <summary>
        /// 删除system_14
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public MsReturned Deletesystem_14ByQuery(MsQuery msq)
        {
            return interface_system_14.Deletesystem_14ByQuery(msq);
        }
        /// <summary>
        /// 删除system_14
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public MsReturned Deletesystem_14ByKey(string System_14_10)
        {
            MsQuery msquery = new MsQuery();
            
             if (System_14_10.IndexOf(",") > 0)
            {
                msquery.strquery += " and System_14_10 in (" + System_14_10 + ") ";
            }
            else
            {
                msquery.strquery += " and System_14_10='" + System_14_10 + "' ";
            }
            return interface_system_14.Deletesystem_14ByQuery(msquery);
        }
    }
}
